package com.cloudlead.commonData.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import java.lang.Float;
import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * EBaseShip is a Querydsl bean type
 */
@Label("船舶基本信息表")
public class EBaseShip extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13151484396802L;    
    @NotNull
    @Label("baseCompanyId")
    @Size(max=24)
    private String baseCompanyId;

    @Label("所属")
    @Size(max=45)
    private String belonged;

    @Label("备注")
    @Size(max=256)
    private String comments;

    @Label("删除标记")
    @Size(max=45)
    private String flag;

    @NotNull(groups={UpdateCheck.class})
    @Label("ID")
    @Size(max=24)
    private String id;

    @Label("当前位置")
    @Size(max=45)
    private String location;

    @Label("MMSI")
    @Size(max=45)
    private String mmsi;

    @Label("名称")
    @Size(max=45)
    private String name;

    @Label("企业编号")
    @Size(max=45)
    private String shipOwnerId;

    @Label("状态")
    @Size(max=45)
    private String status;

    @Label("吨位")
    private Float tonnage;

    public String getBaseCompanyId() {
        return baseCompanyId;
    }

    public void setBaseCompanyId(String baseCompanyId) {
        this.baseCompanyId = baseCompanyId;
    }

    public String getBelonged() {
        return belonged;
    }

    public void setBelonged(String belonged) {
        this.belonged = belonged;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getMmsi() {
        return mmsi;
    }

    public void setMmsi(String mmsi) {
        this.mmsi = mmsi;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShipOwnerId() {
        return shipOwnerId;
    }

    public void setShipOwnerId(String shipOwnerId) {
        this.shipOwnerId = shipOwnerId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Float getTonnage() {
        return tonnage;
    }

    public void setTonnage(Float tonnage) {
        this.tonnage = tonnage;
    }

    public String toString() {
         return String.format("EBaseShip { baseCompanyId : %s,belonged : %s,comments : %s,flag : %s,id : %s,location : %s,mmsi : %s,name : %s,shipOwnerId : %s,status : %s,tonnage : %s }",baseCompanyId,belonged,comments,flag,id,location,mmsi,name,shipOwnerId,status,tonnage);
    }

}

